*******************************************************************************
* EBR
*******************************************************************************

use "dataset_east_baton_rouge_newspaper_coverage", clear

gen post_x = post*x

eststo clear
forvalues c = 2016(1)2020 {
	eststo: reg hits_scaled post x post_x if year >= `c', robust
	estadd scalar minyear = `c'
}

*******************************************************************************
* Add single FW column
*******************************************************************************

use "dataset_fort_worth_newspaper_coverage", clear

gen post_x = post*x

eststo: reg hits_scaled post x post_x, robust
estadd scalar minyear = 2019

*******************************************************************************
* Output table
*******************************************************************************

label variable post "Post May 2020"
label variable x "Month"
label variable post_x "Post X Month"

#delimit;

esttab
	using "_output/table A5.tex"
	,
		replace
		booktabs
		label
		nomtitles
		collabels(none)
		cells(b(fmt(3) star) se(par))
		width(\linewidth)
		stats(minyear N, label("Start Year" "Number of Observations")
			fmt(%20.0f %20.0f))
		compress
		gap
		mgroups("East Baton Rouge" "Fort Worth", pattern(1 0 0 0 0 1)
			prefix(\multicolumn{@span}{c}{) suffix(})
			span erepeat(\cmidrule(lr){@span})
		)
		;
			
#delimit cr	

*******************************************************************************
* End
*******************************************************************************
